﻿using UnityEngine;
using System.Collections;

[System.Serializable]
public class GPUSkinningClip
{
    public string name = null;

    private int _hashName = -1;
    public int shortHashName
    {
        get
        {
            if (_hashName < 0) _hashName = Animator.StringToHash(name);
            return _hashName;
        }
    }

    public float length = 0.0f;

    public int fps = 0;

    public GPUSkinningWrapMode wrapMode = GPUSkinningWrapMode.Once;

    public GPUSkinningFrame[] frames = null;

    public int pixelSegmentation = 0;

    public bool rootMotionEnabled = false;

    public bool individualDifferenceEnabled = true;

    public GPUSkinningAnimEvent[] events = null;
}
